﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit" mc:Ignorable="d" x:Class="Net.Chirash.Twitter.TweetZone.SettingsWindow"
        Title="TweetZoneの設定" Height="600" Width="800" Loaded="Window_Loaded">
	<Window.Resources>
		<visualizationToolkit:StringFormatConverter x:Key="StringFormatConverter"/>
	</Window.Resources>
    <Grid Background="#FF464646">
        
    	<DockPanel LastChildFill="False" Margin="8">
    		<TabControl Margin="0" DockPanel.Dock="Top">
    			<TabItem Header="全体">
    				<StackPanel Margin="4">
    					<CheckBox Content="自動更新を有効にする" Foreground="White" Margin="4"/>
    					<CheckBox Content="エラーをイベントログに記録する" Margin="4"/>
    				</StackPanel>
    			</TabItem>
    			<TabItem Header="タイムラインの更新">
    				<StackPanel>
    					<Grid>
    						<Grid.RowDefinitions>
    							<RowDefinition Height="Auto"/>
    							<RowDefinition Height="Auto"/>
    						</Grid.RowDefinitions>
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="Auto"/>
    							<ColumnDefinition Width="Auto" MinWidth="44.907"/>
    							<ColumnDefinition MinWidth="208"/>
    						</Grid.ColumnDefinitions>
    						<TextBlock TextWrapping="Wrap" Text="更新件数:" Margin="4" VerticalAlignment="Center"/>
    						<TextBox TextWrapping="Wrap" Text="{Binding Value, ConverterParameter=\{0\}件, Converter={StaticResource StringFormatConverter}, ElementName=NumberOfStatusesToGetSlider}" Margin="4" Grid.Column="1" VerticalAlignment="Center" TextAlignment="Right"/>
    						<Slider x:Name="NumberOfStatusesToGetSlider" Margin="4" MinWidth="200" Maximum="200" Minimum="1" LargeChange="10" AutoToolTipPlacement="BottomRight" Value="20" d:LayoutOverrides="Width" Grid.Column="2" VerticalAlignment="Center" SmallChange="1" MaxWidth="300" HorizontalAlignment="Left" />
    						<TextBlock TextWrapping="Wrap" Text="更新間隔:" Margin="4" Grid.Row="1" VerticalAlignment="Center"/>
    						<WrapPanel Margin="4" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" VerticalAlignment="Center">
    							<RadioButton x:Name="Interval30SecondsRadioButton" Content="30秒" Margin="4" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="Interval1minuteRadioButton" Content="1分" Margin="4" IsChecked="True" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="Interval3minutesRadioButton" Content="3分" Margin="4" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="Interval5minutesRadioButton" Content="5分" Margin="4" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="Interval10minutesRadioButton" Content="10分" Margin="4" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="Interval15minutesRadioButton" Content="15分" Margin="4" Checked="IntervalRadioButtonChecked" VerticalAlignment="Center"/>
    							<RadioButton x:Name="IntervalCustomRadioButton" Margin="4" VerticalAlignment="Center">
    								<StackPanel Orientation="Horizontal">
    									<TextBlock TextWrapping="Wrap" Text="カスタム" VerticalAlignment="Center" HorizontalAlignment="Center"/>
    									<TextBox x:Name="CustomIntervalTextBox" TextWrapping="Wrap" Text="30" VerticalAlignment="Center" HorizontalAlignment="Center"/>
    									<TextBlock TextWrapping="Wrap" Text="秒" VerticalAlignment="Center" HorizontalAlignment="Center"/>
    								</StackPanel>
    							</RadioButton>
    						</WrapPanel>
                        </Grid>
     			    <Button Name="test_receive900fromHomeTL" HorizontalAlignment="Left" Click="test_receiveAllfromHomeTL_Click">HomeTLを900件受信する(テスト用)</Button>
   				</StackPanel>
    			</TabItem>
    		</TabControl>
    		<DockPanel LastChildFill="False" VerticalAlignment="Top" DockPanel.Dock="Bottom">
    			<StackPanel Orientation="Horizontal" Margin="0" VerticalAlignment="Top">
    				<Button x:Name="ResetButton" Content="既定値に戻す" Margin="4" Click="ResetButton_Click" Width="100"/>
    				<Button x:Name="InitializeButton" Content="初期値に戻す" Margin="4" Click="InitializeButton_Click" Width="100" IsEnabled="False"/>
    			</StackPanel>
    			<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="0" DockPanel.Dock="Right">
    				<Button x:Name="SaveButton" Content="保存" Width="75" Margin="4" Click="SaveButton_Click"/>
    				<Button x:Name="CancelButton" Content="キャンセル" Width="75" Margin="4" Click="CancelButton_Click"/>
    			</StackPanel>
    			<ProgressBar x:Name="SaveProgressBar" DockPanel.Dock="Top" Margin="12" MinHeight="8" IsIndeterminate="True" Visibility="Hidden"/>
    		</DockPanel>
    	</DockPanel>
        
    </Grid>
</Window>
